﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Administration/Views/Shared/Administration.Master"
	Inherits="System.Web.Mvc.ViewPage<MotorcycleStore.DomainModel.Motorcycle>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>Details</h2>

	<fieldset>
		<legend>Fields</legend>

		<div class="display-label">Id</div>
		<div class="display-field"><%: Model.Id %></div>
		
		<div class="display-label">Name</div>
		<div class="display-field"><%: Model.Name %></div>

		<div class="display-label">Year</div>
		<div class="display-field"><%: Model.Year %></div>

		<div class="display-label">Manufacturer</div>
		<div class="display-field"><%: Model.Manufacturer.Name %></div>

		<div class="display-label">Categories</div>
		<% foreach (var category in Model.Categories) { %>
		<div class="display-field"><%: category.Name %></div>
		<% } %>

	</fieldset>

	<p>
		<%: Html.ActionLink("Edit", "Edit", new { id=Model.Id }) %> |
		<%: Html.ActionLink("Back to List", "Index") %>
	</p>
</asp:Content>
